package org.dtrd.modules.record.entity.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.common.api.dto.BasePatientRequest;
import org.dtrd.config.system.Constant;

import java.util.Date;

/**
 * @author xiao
 * @date 2022/7/25 10:20 PM
 */
@Data
@ApiModel
public class SugarPhotoPeriodRequest extends BasePatientRequest {

    @ApiModelProperty(value = "查询周期", example = "按照周期查询 0：全部 1：一周、2：两周、3：一月、4：两月 5 三月 6 半年 7 一年",required = true)
    private int period;

    @ApiModelProperty(value = "结束时间", required = true, notes = "yyyy-MM-dd")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private String startTime;

    @ApiModelProperty(value = "开始时间", required = true, notes = "yyyy-MM-dd")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private String endTime;

}
